package com.cloudpivot.project.crmprojectnew.pojo;

import lombok.Data;

/**
 * 标准化返回值
 * @author kent
 */
@Data
public class ResultJson<T> {
    private int code;
    private String msg;
    private String result="";
    private T data;


    public ResultJson(int code, String msg){
        this.code=code;
        this.msg=msg;
    }

    public ResultJson(int code, String msg, String result){
        this.code=code;
        this.msg=msg;
        this.result=result;
    }

    public ResultJson(int code, String msg, String result,T t){
        this.code=code;
        this.msg=msg;
        this.result=result;
        this.data=t;
    }


}
